<ion-header>
  <ion-toolbar>
    <ion-title>用户登录</ion-title>
    <ion-button (click)="disMiss()">
      <ion-text *ngIf="platform.is('ios')">取消</ion-text>
      <ion-icon name="md-close" *ngIf="!platform.is('ios')"></ion-icon>
    </ion-button>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-list>
    <ion-item>
      <ion-label position="stacked">手机号码</ion-label>
      <ion-input clearInput value="" [(ngModel)]="mobile"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label position="stacked">密码</ion-label>
      <ion-input clearInput value="" [(ngModel)]="password"></ion-input>
    </ion-item>
  </ion-list>

  <div class="ion-padding">
    <ion-button class="ion-text-center" (click)="login()" expand="block" color="primary">登陆</ion-button>
  </div>
  <div class="ion-padding ion-text-center">
    <ion-button fill="outline" color="primary" (click)="pushRegisterPage()">没有账号？注册</ion-button>
  </div>
</ion-content>